.PHONY:all clean

all:
	if [ ! -x build ]; then mkdir build;	fi
	cd build; cmake ..; make

clean:
	cp build/Makefile.my .
	rm -rf build
	mkdir build
	mv Makefile.my build
